﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string username = Request.Params["username"];
            if (username != null)
            {
                Response.Write("您的用户名为" + username);

            }
        }
        protected void Button1_Click(object sender, EventArgs e)
        {

            string username = Request.Params["username"];
            string password = Request.Params["password"];
            if (username == TextBox1.Text && password == TextBox2.Text)
            {
                Response.Redirect($"WebForm3.aspx?username={username}");
            }
        }
    }
}